1fc546244883a0128ce0a61898a6981589f8589a,net.flexmojos.m2e/src/net/flexmojos/m2e/FlashBuilderAbstractModule.java,FlashBuilderAbstractModule,configure,#,53
Before Change
// An Apollo project exists in two flavors: ApolloActionScriptProject, and ApolloProject. While the former
// directly extends from ActionScriptProject, the later inherits from FlexProject, so it is perfectly
// possible for an Apollo project to have a Flex nature as well.
addNature( project, "com.adobe.flexbuilder.project.apollonature", monitor );
// The configurator will replace the ActionScript project configurator initially set by an
// ApolloActionScript project configurator. Later in the execution flow, in the case a
// project have the Flex nature as well, the configurator will be replaced by a "pure" Apollo project
After Change
// If we have Flex framework. Project style should be flex project.
boolean hasFlexFramework = facade.hasFlexFramework();
if ( isFlash )
{
if ( hasFlexFramework )
{
// Flex Web Style
addNature( project, "com.adobe.flexbuilder.project.flexnature", monitor );
addNature( project, "com.adobe.flexbuilder.project.actionscriptnature", monitor );
configurator = getFlexProjectConfiguratorClass();
}
else
{
// ActionScript Web Style
addNature( project, "com.adobe.flexbuilder.project.actionscriptnature", monitor );
configurator = getActionScriptProjectConfiguratorClass();
}
}
else if ( isApollo )
{
if ( hasFlexFramework )
{
// Flex Desktop Style
addNature( project, "com.adobe.flexbuilder.project.flexnature", monitor );
addNature( project, "com.adobe.flexbuilder.project.apollonature", monitor );
addNature( project, "com.adobe.flexbuilder.project.actionscriptnature", monitor );
configurator = getApolloProjectConfiguratorClass();
}
else
{
// ActionScript Desktop Style
addNature( project, "com.adobe.flexbuilder.project.apollonature", monitor );
addNature( project, "com.adobe.flexbuilder.project.actionscriptnature", monitor );
configurator = getApolloActionScriptProjectConfiguratorClass();
}